import { ref } from 'vue'
import request from '@/utils/request.js'

export const select = (file) => {
   return request.post('/upload', file)
}


export const selectAllUser = (classId) => {
   return request.get('/excel/getAllUserByClassId?classId=' + classId)
}

export const deleteUser = (userId) => {
   return request.delete("/excel/deleteUser?userId=" + userId)
}

export const getClassInfo = (classId) => {
   return request.get("/classUserPrc/getClass?classId=" + classId)
}
export const getSimulatedExam = (params) => {
   return request.post("/sysSimulatedExam/getSimulatedExam", params)
}
export const AddSimulatedExam = (SysSimulatedExam) => {
   return request.post("/sysSimulatedExam/add", SysSimulatedExam)
}

//查询班级
export const selectClass = () => {
   return request.get("/ClassTable/selectListClass")
}

//将用户进行转班
export const amendClass=(part)=>{
   return request.post("/excel/amendclass",part)
}